package com.htj.erp.dao;
import com.htj.erp.dao.QualiBaseDao;
import com.htj.erp.model.jpa.Orderh;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 *
 * OrderhDao
 * orderh dao 层
 * 使用JPA分页查询 一般继承com.kedacom.security.dao.BaseJpaDao
 *  public Page<PO> findByXXX(String xxx, Pageable pageable);
 * chenghongtao
 * 2016-11-07 11:59:35
 * HTJ
 * @version 1.0.0
 *
 */
@Repository
public interface OrderhDao extends QualiBaseDao<Orderh> {
	
	@Modifying
	 @Query("update Orderh set status= :status where id = :id")
	void updateStatus(@Param("id")Long id,@Param("status")Integer status);
	
	
}